package com.dokimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dokimall.common.utils.PageUtils;
import com.dokimall.product.entity.AttrEntity;
import com.dokimall.product.vo.AttrRespVo;
import com.dokimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author mori
 * @email 550144898@qq.com
 * @date 2021-09-26 14:21:34
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryPageBaseAttrPage(Map<String, Object> params, Long catelogId,String attrType);

    AttrRespVo getAttrRespById(Long attrId);

    void updateByAttrVo(AttrVo attr);

    PageUtils noattrRelation(Map<String, Object> params, Long attrgroupId);

    List<Long> getCanSearchAttrs(List<Long> attrIds);
}

